home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / cracking / BeginnersMacAssembly.sit.hqx / BeginnersMacAssembly.rsrc / PICT_20.png < prev    next >
Portable Network Graphic  |  1997-07-26  |  104KB  |  816x1056  |  8-bit (256 colors)
Labels: book | poster | reckoner | sky
OCR: Bote eahar the9displacement mgin woriMacihta7 embly Language Programming 23age Offsets be a pain, if the assembler calculate them for you move. .w total(pc),d0 *move the pirM held in total op oo You needed worry about the offset here. as Fantasm will calculate it for you and substitute the offset for total. This form of addressing uses two bytes 10J the offset, whereas an absolute address uses bytes: move fred(pc),d0 *this instruction is 4 bytes move. fred op* *this instruction is 6 bytes Note that normally on a Mac move. W fred,do would be illegal as all data has to be accessed as offsets. However Fantasm uses a special loader in the application creates to relocate any absolute long references. Working like this is no longer recommended in Fantasm there is really no need Program counter w ...